/**
 * ThangTH
 * 
 */
$(document).ready(function() {
	var div = $('.top-header');
	var start = $(div).offset().top;
	
	$.event.add(window,"scroll", function(){
		var p = $(window).scrollTop();
		$(div).css("position",((p)>start)?'fixed':'static');
		$(div).css('top',((p)>start)?'0px':'');
		$(div).css("z-index",((p)>start)?'1000000':'0');
	});
	
});